<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


                   <div class="box width-500">
                   
                        <legend>
                           Add New Addon
                        </legend>
                        
                        <form id="add-addon" method="post" action="/OnlineResortReservation/AddNewAddonServlet">
                        
                        	<p>
                            	<label>Addon Type</label>
                                <select name="addon-type-name" class="input-large margin-r-20" id="addon-type-name" >
                                    <c:forEach var="addon" items="${addontype}">
                                    <option selected value="${addon.addonid}">${addon.name}</option>
                                    </c:forEach>
                                </select>
                            </p>
                        
                        	<p>
                            	<label for="addon-name">Addon Name</label>
                                <input type="text" required name="addon-name" id="addon-name" class="input-xlarge" placeholder="Enter name of Addon">
                            </p>
                            
                            
                            <p class="input-prepend input-append">
                            	<label for="addon-price" >Addon Price</label>
                                <span class="add-on">Rs. </span><input type="number" name="addon-price" id="addon-price" required class="input-medium" placeholder="Addon Price">
                            </p>
                            
                            <br>
                            
                            <p class="textarea-nice">
                            	<label for="description" >Addon Description</label>
                                <textarea name="addondescription" class="input-block-level" id="addondescription" required rows="5" > </textarea>
                            </p>
                            
                           
                            <p>
                             	<label class="checkbox">
                                <input type="checkbox" name="addoncheckbox" id="addoncheckbox" value="active"> Check the box to make the Addon Active.
                                </label>
                            	
                            </p>
                            
                            <p>
                            	<input type="submit" class="btn btn-primary btn-large" value="Save" name="submit" id="addAddonSaveButton">
                            </p>
                            <p>
                                <label class="text-success"> <%=request.getParameter("msg")%></label>
                            </p>
                            
                   		</form>
            	
				</div>
           
            <hr>

            <footer>
                <p>&copy; The Prime Resort, 2012</p>
            </footer>

      

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.1.min.js"><\/script>')</script>

        <script src="js/vendor/bootstrap.min.js"></script>
		<script src="js/nicEdit.js"></script><!-- including nicedit js-->
        <script src="js/main.js"></script>
        <script src="js/jquery.validate.min.js"></script>
        <script type="text/javascript">
        
			$(document).ready(function() { 
			 	 
				 // form validation
				 $("#add-addon").validate();
				 
            });
			
			bkLib.onDomLoaded(function() { //assigning nicedit to textarea 
					new nicEditor({fullPanel : true,iconsPath : 'js/nicEditorIcons.gif',xhtml: true}).panelInstance('description');
				});
        
        </script>
